* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
  overflow: hidden;
  /* 背景色调整为淡蓝色，营造清新感 */
  background: #e6f7ff; 
}

.common-layout {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.box {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* 顶部白色样式 */
.header {
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #333;
  border-bottom: 1px solid #e6e9ed;
}

.logoBox {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 22px;
  font-weight: 700;
  /* 文字颜色调整为蓝色 */
  color: #1890ff; 
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.collapsed .logoBox {
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-size: 18px;
}

.el-aside {
  width: 200px !important;
  height: 100vh;
  padding-top: 70px;
  transition: all 0.3s ease;
  overflow: hidden;
  /* 侧边栏背景色调整为淡蓝色 */
  background: #f0faff !important; 
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
  position: relative;
  border-radius: 0;
}

.collapsed .el-aside {
  width: 64px !important;
}

.toggle-btn {
  position: absolute;
  top: 20px;
  right: 10px;
  font-size: 20px;
  /* 按钮颜色调整为蓝色 */
  color: #1890ff; 
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s;
}

.collapsed .toggle-btn {
  right: 50%;
  transform: translateX(50%);
}

.toggle-btn:hover {
  color: #40a9ff;
}

.header {
  padding: 0;
  height: 70px !important;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  border-radius: 0;
}

/* 白蓝配色菜单 */
.el-menu {
  --el-menu-bg-color: #f0faff;
  --el-menu-hover-bg-color: #d9edff; 
  --el-menu-text-color: #333;
  --el-menu-active-color: #1890ff;
  --el-menu-hover-text-color: #1890ff;
  border-right: none !important;
  font-size: 14px;
  font-weight: 500;
}

.el-menu-item, .el-sub-menu__title {
  height: 48px !important;
  line-height: 48px !important;
  font-size: 14px;
  transition: all 0.2s;
  border-radius: 0 !important;
}

.el-menu-item:hover, .el-sub-menu__title:hover {
  background: #d9edff !important;
}

.el-menu-item.is-active {
  color: #1890ff !important;
  background: #d9edff !important;
  border-right: 3px solid #1890ff;
}

.el-aside .el-sub-menu .el-menu {
  background: #e6f7ff !important;
  border-radius: 0;
}

.el-aside .el-sub-menu .el-menu-item {
  background: transparent !important;
  padding-left: 54px !important;
}

.el-menu--horizontal {
  justify-content: flex-end;
  background: transparent !important;
  height: 100%;
  border-bottom: none;
}

.el-main {
  /* 主内容区域背景色调整为淡蓝色 */
  background-color: #e6f7ff; 
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 0;
}

.el-main-content {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  border-radius: 0;
}

/* 顶部菜单样式 */
.header-menu {
  margin-left: auto;
}

.header .el-menu-item, .header .el-sub-menu__title {
  height: 70px !important;
  line-height: 70px !important;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.header .el-menu-item:hover, .header .el-sub-menu:hover .el-sub-menu__title {
  background: transparent !important;
  color: #1890ff;
}

.header .el-icon {
  color: #666;
  font-size: 18px !important;
}

.header .el-menu-item:hover .el-icon, 
.header .el-sub-menu:hover .el-icon {
  color: #1890ff;
}

/* 内容区域 */
.content-container {
  background: #fff;
  border-radius: 0;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  border: 1px solid #e8e8e8;
}

.content-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
}

.content-title .el-icon {
  margin-right: 10px;
  color: #1890ff;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  background: #fff;
  border-radius: 0;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #1890ff;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
}

.stat-card .title {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  font-weight: 500;
}

.stat-card .value {
  font-size: 28px;
  font-weight: 700;
  color: #1890ff;
  margin-bottom: 5px;
}

.stat-card .info {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
}

.stat-card .info .trend {
  margin-left: 8px;
  display: flex;
  align-items: center;
}

.chart-container {
  background: #fff;
  border-radius: 0;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  border: 1px solid #e8e8e8;
}

.chart-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.chart-title .el-icon {
  color: #1890ff;
  font-size: 18px;
  margin-right: 8px;
}

.chart-placeholder {
  height: 300px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 16px;
}

.fr {
  margin-left: 20px;
}

/* 折叠状态下的菜单样式 */
.collapsed .el-sub-menu > .el-sub-menu__title span,
.collapsed .el-menu-item span {
  display: none;
}

.collapsed .el-sub-menu > .el-sub-menu__title .el-sub-menu__icon-arrow {
  display: none;
}

.collapsed .el-menu-item .el-icon,
.collapsed .el-sub-menu .el-icon {
  margin-right: 0;
  font-size: 20px;
}

.el-sub-menu [class^="el-icon"] {
  margin-right: 8px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.activity-list {
  list-style: none;
  padding: 0;
}

.activity-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.activity-item .el-icon {
  font-size: 16px;
  margin-right: 10px;
  color: #1890ff;
}

/* 统一 el-card 卡片样式 */
.el-card.chart-container,
.el-card.user-list {
  background: #fff;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e8e8e8;
  margin-bottom: 20px;
  padding: 20px;
}

/* 统一卡片标题 */
.chart-header h2,
.list-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

/* 卡片顶部操作按钮区域 */
.chart-header,
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* 搜索框和刷新按钮 */
.list-actions {
  display: flex;
  align-items: center;
}

/* 统一表格样式 */
.el-table {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #e8e8e8;
  font-size: 14px;
}
.el-table th {
  background: #f5f7fa !important;
  color: #333;
  font-weight: 600;
}
.el-table .el-table__cell {
  padding: 10px 0;
}
.el-table .amount-value {
  color: #1890ff;
  font-weight: bold;
}

/* 用户头像和用户名 */
.user-cell {
  display: flex;
  align-items: center;
}

/* 状态标签 */
.el-tag.el-tag--success {
  background: #e6f7ff;
  color: #1890ff;
  border: none;
}
.el-tag.el-tag--danger {
  background: #fff1f0;
  color: #f5222d;
  border: none;
}

/* 操作按钮 */
.el-button[type="text"] {
  color: #1890ff;
  font-size: 13px;
  padding: 0 8px;
}
.el-button[type="text"]:hover {
  color: #40a9ff;
  background: none;
}

/* 分页统一 */
.pagination-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.el-pagination {
  background: transparent;
}
.el-pagination .el-pager li.active {
  background: #1890ff;
  color: #fff;
  border-radius: 4px;
}

/* 滚动容器统一 */
.scrollable-content {
  padding: 24px 0;
  background: #e6f7ff;
  min-height: 100vh;
  overflow-y: auto;
}

/* 让折线图区域高度一致 */
.chart-wrapper {
  min-height: 300px;
  background: #f9f9f9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.el-table .action-col .el-table__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
}
.list-actions {
  display: flex;
  align-items: center;
  height: 100%;
}

/* 顶部Header样式 */
.main-header {
  height: 70px;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 40px;
}

.logo img {
  height: 36px;
  margin-right: 10px;
}

.logo span {
  font-size: 20px;
  font-weight: bold;
  color: #1890ff;
}

.search-box {
  flex: 1;
  max-width: 300px;
  margin-right: 40px;
}

/* 新增或修改如下样式 */

.main-nav {
  /* 导航栏背景色调整为淡蓝色 */
  background-color: #f0faff; 
  width: 100%;
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center;
  height: 60px;

}

.main-nav ul {
  display: flex;
  width: 100%;
  justify-content: space-evenly; /* 均匀分布 */
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin-right: 0; /* 去除右边距，靠均匀分布 */
  flex: 1;         /* 每个li等宽 */
  text-align: center;
}

.main-nav a {
  text-decoration: none;
  /* 导航文字颜色调整为蓝色 */
  color: #1890ff; 
  font-size: 20px;      /* 字体更大 */
  font-weight: bold;    /* 字体加粗 */
  transition: color 0.3s;
  display: inline-block;
  width: 100%;
}

.main-nav a:hover {
  color: #40a9ff;
}

.user-center {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.el-dropdown-link {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.el-dropdown-link span {
  margin-left: 8px;
}

/* 底部Footer样式 */
.main-footer {
  /* 底部背景色调整为淡蓝色 */
  background-color: #e6f7ff; 
  padding: 40px 0 20px;
  border-top: 1px solid #e6e8eb;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.link-group h3 {
  font-size: 16px;
  margin-bottom: 15px;
  /* 底部标题颜色调整为蓝色 */
  color: #1890ff; 
}

.link-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-group li {
  margin-bottom: 10px;
}

.link-group a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.link-group a:hover {
  color: #1890ff;
}

.copyright {
  text-align: center;
  color: #999;
  font-size: 14px;
  padding-top: 20px;
  border-top: 1px solid #e6e8eb;
}